package com.edu.schoolforum.service;

import com.edu.schoolforum.mapper.PhotoMapper;
import com.edu.schoolforum.pojo.ImgUrl;
import com.edu.schoolforum.pojo.PhotoUrl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tao
 * @date 2021/8/28 11:15
 */
@Service
public class PhotoServiceImpl implements PhotoService{
    @Autowired
    private PhotoMapper photoMapper;

    @Override
    public int insertPhoto(ImgUrl imgUrl) {
        return photoMapper.insertPhoto(imgUrl);
    }

    @Override
    public List<PhotoUrl> selectImgUrl() {
        return photoMapper.selectImgUrl();
    }

    @Override
    public int deletePhoto(Integer id) {
        return photoMapper.deletePhoto(id);
    }


}
